namespace Acme.ELeMe.SDK.Response;

public class BillOrderDetailGetResult
{
    public string baidu_shop_id { get; set; }
    public long date { get; set; }
    public string shop_id { get; set; }
    public List<BillOrder> order_list { get; set; }
}

public class BillOrder
{
    public long amount { get; set; }
    public BillOrderDetailFee order_detail_fee { get; set; }
    public string ele_order_id { get; set; }
    public long order_create_time { get; set; }
    public string order_from { get; set; }
    public string order_id { get; set; }
    public int order_index { get; set; }
    public string pay_entity { get; set; }
    public string responsible_party { get; set; }
    public long trade_create_time { get; set; }
    public long payment_date { get; set; }
}

public class BillOrderDetailFee
{
    /// <summary>
    /// 调账金额，单位：分
    /// </summary>
    public long adjust_fee { get; set; }
    /// <summary>
    /// 代理商补贴，单位：分
    /// </summary>
    public long agent_rate { get; set; }
    /// <summary>
    /// 冷链加工费，单位：分
    /// </summary>
    public long cold_box_fee { get; set; }
    /// <summary>
    /// 实收佣金，单位：分
    /// </summary>
    public long commission { get; set; }
    /// <summary>
    /// 抽佣比例
    /// </summary>
    public long discount_value { get; set; }
    /// <summary>
    /// 保底抽佣金额，单位：分
    /// </summary>
    public long guarantee_fee { get; set; }
    /// <summary>
    /// 包装费，单位：分
    /// </summary>
    public long package_fee { get; set; }
    /// <summary>
    /// 平台补贴，单位：分
    /// </summary>
    public long platform_rate { get; set; }
    /// <summary>
    /// 商品总金额，单位：分
    /// </summary>
    public long product_fee { get; set; }
    /// <summary>
    /// 配送费，单位：分
    /// </summary>
    public long send_fee { get; set; }
    /// <summary>
    /// 商户补贴，单位：分
    /// </summary>
    public long shop_rate { get; set; }
    /// <summary>
    /// 用户实付金额，单位：分
    /// </summary>
    public long user_fee { get; set; }
    /// <summary>
    /// 众包呼单费，单位：分
    /// </summary>
    public long zhongbao_call_fee { get; set; }
    /// <summary>
    /// 履约服务费（基础物流费），单位：分
    /// </summary>
    public long actual_base_logistics_amount { get; set; }
    /// <summary>
    /// 增值服务费，单位：分
    /// </summary>
    public long shop_in_amount { get; set; }
    /// <summary>
    /// 距离加价费，单位：分
    /// </summary>
    public long actualBaseDistanceAmount { get; set; }
    /// <summary>
    /// 时间加价费，单位：分
    /// </summary>
    public long actualBaseTimeAmount { get; set; }
    /// <summary>
    /// 基础物流费总额，单位：分。基础物流费总额=履约服务费（基础物流费）+距离加价费+时间加价费
    /// </summary>
    public long baseLogisticsAmount { get; set; }
    /// <summary>
    /// 订单类型，枚举值：(0, "外卖服务";1, "到店自取";2, "到店买单")
    /// </summary>
    public int orderBusinessType { get; set; }
    /// <summary>
    /// 业务类型，枚举值：(正向单/全部退单/部分退单/赔偿单/部分退赔偿单/赔付单/正向调整/负向调整/生鲜自提/生鲜自提退单/新零售代运营/新零售代运营退单/新零售代运营商户扣款/新零售代运营商户扣款退单)
    /// </summary>
    public string businessTypeDesc { get; set; }
    /// <summary>
    /// 商户补贴-商家券，单位：分
    /// </summary>
    public long merchantCouponAmount { get; set; }
    /// <summary>
    /// 商户补贴-配送费，单位：分
    /// </summary>
    public long merchantDeliveryCouponAmount { get; set; }
    /// <summary>
    /// 商户补贴-配送费活动，单位：分
    /// </summary>
    public long merchantDeliverySubsidyAmount { get; set; }
    /// <summary>
    /// 商户补贴-礼金，单位：分
    /// </summary>
    public long merchantCashGiftAmount { get; set; }
    /// <summary>
    /// 商户补贴-活动，单位：分
    /// </summary>
    public long merchantSubsidyAmount { get; set; }
    /// <summary>
    /// 商户补贴-单品券，单位：分
    /// </summary>
    public long merchantItemCouponAmount { get; set; }
    /// <summary>
    /// 配送费，单位：分
    /// </summary>
    public long originDeliverFee { get; set; }
    /// <summary>
    /// 配送方式，枚举值：(自配送/饿了么-众包/代理商物流配送/平台物流配送/未知)
    /// </summary>
    public string deliveryType { get; set; }
    /// <summary>
    /// 呼单小费，单位：分
    /// </summary>
    public long deliveryTipAmount { get; set; }
    /// <summary>
    /// 饿了么平台补贴-商家券，单位：分
    /// </summary>
    public long elemeCouponAmount { get; set; }
    /// <summary>
    /// 饿了么平台补贴-配送费券，单位：分
    /// </summary>
    public long elemeDeliveryCouponAmount { get; set; }
    /// <summary>
    /// 饿了么平台补贴-配送费活动，单位：分
    /// </summary>
    public long elemeDeliverySubsidyAmount { get; set; }
    /// <summary>
    /// 饿了么平台补贴-礼金，单位：分
    /// </summary>
    public long elemeCashGiftAmount { get; set; }
    /// <summary>
    /// 饿了么平台补贴-活动，单位：分
    /// </summary>
    public long elemeSubsidyAmount { get; set; }
    /// <summary>
    /// 饿了么平台补贴-红包，单位：分
    /// </summary>
    public long elemeRedPacket { get; set; }
    /// <summary>
    /// 是否搭售单，枚举值：0:否，1:是
    /// </summary>
    public int isTyingOrder { get; set; }
    /// <summary>
    /// 搭售单类型，枚举值：0:主单，1:搭售单
    /// </summary>
    public int tyingOrderType { get; set; }
    /// <summary>
    /// 是否搭售单，枚举值：0:否，1:是
    /// </summary>
    public string isTyingOrderDesc { get; set; }
    /// <summary>
    /// 搭售单类型，单位：分
    /// </summary>
    public string tyingOrderTypeDesc { get; set; }
    /// <summary>
    /// 商户补贴-红包，单位：分
    /// </summary>
    public long merchantRedPacket { get; set; }
    /// <summary>
    /// 订单类型，枚举值：(0 即时单；1 预定单)
    /// </summary>
    public string bookTypeDesc { get; set; }
    /// <summary>
    /// 是否降级自配送，枚举值：(是 否)
    /// </summary>
    public string isSelfDelivery { get; set; }
    /// <summary>
    /// 增值服务费总额，单位：分
    /// </summary>
    public long addition_service_price { get; set; }
    /// <summary>
    /// 慢必赔服务费，单位：分
    /// </summary>
    public long slow_will_pay_amount { get; set; }
    /// <summary>
    /// 医保卡支付，单位：分
    /// </summary>
    public long medical_card_pay { get; set; }
    /// <summary>
    /// 渠道费
    /// </summary>
    public long pay_channel_fee { get; set; }
    /// <summary>
    /// 渠道费率
    /// </summary>
    public long pay_channel_rate { get; set; }
    /// <summary>
    /// 逆向退款单号
    /// </summary>
    public string refundOrderId { get; set; }
}